<?php


namespace app\mod\pcr\model;


use think\Model;

class PcrGveGroup extends Model {

    const STATUS_NORMAL = 0;

    protected $table = 'pcr_gve_group';

    public function getByQQGroupId(int $qq_group_id) {
        return $this->where('qq_group_id', $qq_group_id)->where('status', self::STATUS_NORMAL)->find();
    }

    public function getByGroupId(int $group_id) {
        return $this->where('id', $group_id)->find();
    }

}
